import axios from '@/api/fetch';
export const getpartInfosList = params => axios.get(`/dms.web/part/rest/basedata/partInfos`, { params });
// 获取品牌数据字典
export const getbrandsdictList = params => axios.get(`/dms.web/manage/rest/basedata/brandsdict`, { params });
// 获取配件车型车系
export const getpartModelList = params => axios.get(`/dms.web/part/rest/basedata/partInfos/partModel`, { params });
// 添加配件信息
export const addpartModelList = params => axios.put(`/dms.web/part/rest/basedata/partInfos`, params);
// 编辑配件信息
export const emitpartModelList = params => axios.put(`/dms.web/part/rest/basedata/partInfos/${params.partNo}/a`, params);
// 获取配件信息
export const getpartModelDetail = params => axios.get(`/dms.web/part/rest/basedata/partInfos/${params.PART_NO}/a`, { params });
// 获取单位数据字典
export const getpartGroupCodeList = params => axios.get(`/dms.web/part/rest/basedata/partInfos/partGroupCode`, { params });
// 获取产品组数据字典
export const getlevelOnePartTypeList = params => axios.get(`/dms.web/part/rest/basedata/partInfos/levelOnePartType`, { params });
// 获取产品类别数据字典
export const levelTwoPartType = params => axios.get(`/dms.web/part/rest/basedata/partInfos/levelOnePartType/${params.PRODUCT_GROUP_NAME}/levelTwoPartType`, { params });
// 获取产品子类数据字典
export const levelThreePartType = params =>
  axios.get(`/dms.web/part/rest/basedata/partInfos/levelOnePartType/${params.PRODUCT_GROUP_NAME}/levelTwoPartType/${params.PRODUCT_TYPE_NAME}/levelThreePartType`, { params });
